﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GEPSCodeTemplate
{
    public partial class OptionForm : Form
    {
        private OptionForm()
        {
            InitializeComponent();
        }

        private void btnSelectPath_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog oDialog = new FolderBrowserDialog();
            oDialog.ShowDialog();
            txtPath.Text = oDialog.SelectedPath;
            Properties.Settings.Default.Contentpath = txtPath.Text;
            Properties.Settings.Default.Save();
        }

        public static void Execute()
        {
            OptionForm oForm = new OptionForm();
            oForm.txtPath.Text = Properties.Settings.Default.Contentpath;
            oForm.ShowDialog();
        }
    }
}
